package com.ms.p2p.service.impl;

import com.ms.p2p.bean.PageBean;
import com.ms.p2p.dao.SmsRecordDao;
import com.ms.p2p.entity.member.SmsMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 短信发送记录
 */
@Service
public class SmsRecordServiceImpl  {

	@Autowired
	SmsRecordDao recordDao;

	public int insert(SmsMessage map){
		return recordDao.insert(map);

	}
	
	public String deleteByIds(String ids){
		return  recordDao.deleByIds(ids);

	}
	
	public int update(SmsMessage map){
		return recordDao.update(map);

	}

	public List findPager(String mobilePhone, String begin_date, String end_date, PageBean page) {
		return recordDao.findPager(mobilePhone,begin_date,end_date,page.getBegin(),page.getPageSize());
	}

	public  int findCount(String mobilePhone, String begin_date, String end_date){
		return recordDao.findCount(mobilePhone,begin_date,end_date);
	}
}
